<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="author" content="LYQ">
    <title>计算器</title>
	<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
	<header>
		<h2>我的计算器</h2>
	</header>
	<div class="container">
		<div class="search">
			<input type="text" placeholder="" class="search-input" id="input"/>
		</div>
		<div class="main">
			<div class="main_box">
				<button class="btn_sm" onclick="change(this)" value="1">1</button>
				<button class="btn_sm" onclick="change(this)" value="4">4</button>
				<button class="btn_sm" onclick="change(this)" value="7">7</button>
				<button class="btn_sm" onclick="clear_input()">C</button>
			</div>
			<div class="main_box">
				<button class="btn_sm" onclick="change(this)" value="2">2</button>
				<button class="btn_sm" onclick="change(this)" value="5">5</button>
				<button class="btn_sm" onclick="change(this)" value="8">8</button>
				<button class="btn_sm" onclick="change(this)" value="0">0</button>
			</div>
			<div class="main_box">
				<button class="btn_sm" onclick="change(this)" value="3">3</button>
				<button class="btn_sm" onclick="change(this)" value="6">6</button>
				<button class="btn_sm" onclick="change(this)" value="9">9</button>	
				<button class="btn_sm" onclick="change(this)" value=".">.</button>
			</div>
			<div class="main_box">
				<button class="btn_sm" onclick="change(this)" value="+">+</button>
				<button class="btn_sm" onclick="change(this)" value="-">-</button>
				<button class="btn_sm" onclick="change(this)" value="*" id="ride">*</button>
				<button class="btn_sm" onclick="change(this)" value="/" id="divide">/</button>
			</div>
			<div class="main_box">
				<button class="btn_sm" onclick="del()">←</button>
				<button class="btn_sm" style="height: 16rem" onclick="output()">=</button>
			</div>
		</div>
	</div>
	<footer>
		<h3 class="footer_text">广告栏招商</h3>
	</footer>
	<script src="js/main.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>